import Layout from '@/layouts/index.vue'

/**
 * @description: 本地路由
 * @fileName: manage
 * @author: 17076
 * @date: 2024/12/6-上午9:28
 * @version: V1.0.0
 **/
const manage = [
  {
    path: '/',
    name: 'home',
    component: Layout,
    redirect: '/index',
    authKey: 'back_home',
    hidden: '1',
    meta: { title: '首页', icon: 'el-icon-s-home' },
    children: [
      {
        path: '/index',
        name: 'Index',
        hidden: '1',
        component: () => import('@/views/index/index.vue'),
        meta: { title: '首页', affix: false, icon: 'el-icon-s-home' }
      }
    ]
  },
  {
    path: '/system',
    name: 'System',
    component: Layout,
    meta: { title: '系统设置', icon: 'el-icon-setting' },
    hidden: '1',
    children: [
      {
        path: '/user-manage',
        name: 'UserManage',
        hidden: '1',
        component: () => import('@/views/system/userManage/index.vue'),
        meta: { title: '用户管理', affix: false }
      },
      {
        path: '/role-manage',
        name: 'RoleManage',
        hidden: '1',
        component: () => import('@/views/system/roleManage/index.vue'),
        meta: { title: '角色管理', affix: false }
      },
      {
        path: '/menu-manage',
        name: 'MenuManage',
        hidden: '1',
        component: () => import('@/views/system/menuManage/index.vue'),
        meta: { title: '菜单管理', affix: false }
      }
    ]
  }
]
export default manage
